﻿@model WaveDataTableModel
@using Nop.Web.Models.WindAlert;
@{
    int i = 0;
}
    @if (Model.TableRows.Count > 0)
    {   
        <table style="border-spacing: 0; width: 100%;" class=""> 
            <tr>
                <td class="table-title">מצוף</td>
                <td class="table-title">זמן</td>
                <td class="table-title">גובה גל</td>
                <td class="table-title">כוון גל</td>
                <td class="table-title">מחזור גל</td>
                <td class="table-title">טמפרטורה</td>
            </tr>
        @foreach (WaveDataRowModel row in Model.TableRows)
        {
            <tr class="@(i % 2 == 0 ? "even" : "odd")">
                <td class="station-name">@row.SpotName</td>
                <td>@row.WaveAdjustedTime.ToShortTimeString()</td>
                <td>@row.Hmax  - @row.Hs</td>
                 <td>@row.Direction</td>
                <td>@row.tav</td>
                <td>@row.Temperture</td>
            </tr>
            i++;
         }
         </table>  
        }
